FROM java:8
ADD target/*.jar /jenkins-test_1.0.0.jar
RUN ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime
RUN echo 'Asia/Shanghai' >/etc/timezone
RUN bash -c 'touch /jenkins-test_1.0.0.jar'
EXPOSE 8080
ENTRYPOINT ["java", "-jar", "-Djava.security.egd=file:/dev/./urandom", "/jenkins-test_1.0.0.jar", "--server.port=8080"]
MAINTAINER lanzhou